//公告
//公告查询
import {transfer} from "./axiosApi";

export function queryAnnouncement(data) {
    return transfer({
        method: 'post',
        data,
        url: 'Announcement/page'
    })
}

// 公告添加
export function AddAnnouncement({title, content}) {
    return transfer({
        url: '/Announcement/add',
        method: 'post',
        data: {title, content},
    })
}

//修改公告
export function UpdateAnnouncement({title, content, uuid}) {
    return transfer({
        url: '/Announcement/update',
        method: 'post',
        data: {title, content, uuid},
    })
}

//删除公告
export function delectAnnouncement(id) {
    return transfer({
        url: '/Announcement/del',
        params: {id}
    })
}